﻿@model dynamic
@section header{
    <title>达达充值-配送管理</title>
    <link type="text/css" rel="stylesheet" href="/admin_store/css/site.css" />
    <script type="text/javascript" src="/admin_store/scripts/jquery.js"></script>
    <script type="text/javascript" src="/admin_store/scripts/showlist.js"></script>
    <link rel="stylesheet" type="text/css" href="/components/jbox/Skins/Default/jbox.css" />
    <script type="text/javascript" src="/components/jbox/jquery.jBox-2.3.min.js"></script>
}

@section body{
    <h1 class="rightH1">
        微信小程序 &gt; 餐饮外卖 &gt; <span class="rightH1-cur">达达充值</span>
        <div class="right">
            <div class="clear"></div>
        </div>
        <div class="clear"></div>
    </h1>
		<form id="form1" action="PayConfirm" method="get">
	<div class="addTable">
		<table width="100%">
			<tr>
				<td width="80px" align="right">充值商户：</td>
				<td>@WorkContext.StoreName</td>
			</tr>
			<tr>
				<td align="right">充值金额：</td>
				<td><input type="text" id="OrderMoney" name="OrderMoney" /></td>
			</tr>

			<tr>
				<td align="right">&nbsp;</td>
				<td>
					<a><button class="button" onclick="return check()">提交充值</button></a>
				</td>
			</tr>
			<tr>
				<td align="right">&nbsp;</td>
				<td>&nbsp;</td>
			</tr>
		</table>
	</div>
</form>

	<script>
		function check() {
			if ($("#OrderMoney").val() == "") {
				$.jBox.tip('请填写充值金额！');
				return false;
			}
			if (isNaN($("#OrderMoney").val())) {
				$.jBox.tip('金额必须是数字！');
				return false;
			}
			if (parseFloat($("#OrderMoney").val()) < 1) {
			    $.jBox.tip('金额不能小于1元！');
			    return false;
			}
			return true;
		}


	</script>
}